package com.dynaBlaster.plainTest;

import junit.framework.TestCase;
import com.dynaBlaster.*;


public class PointTest extends TestCase {
	
	public void testPointsEquals()
	{
		Point p1 = new Point(2,2);
		Point p2 = new Point(1,2);
		Point p3 = new Point(2,0);
		Point p4 = new Point(2,-2);
		Point p11 = new Point(2,2);
		
		assertTrue(p1.equals(p1));
		assertTrue(p1.equals(p11));
		assertTrue(p11.equals(p1));
		
		assertFalse(p1.equals(p2));
		assertFalse(p1.equals(p3));
		assertFalse(p1.equals(p4));
	}
	
	 
	public void testPoint2()
	{
		Point p = new Point(5,7);
		
		assertEquals(p.x, 5);
		assertEquals(p.y, 7);
	}

}
